package com.huanghuai.retail.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @TableName s_inventory
 */
@TableName(value = "s_inventory")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SInventory implements Serializable {
    /**
     *
     */
    @TableId
    private Long id;

    /**
     * 产品id
     */
    private Long productId;

    /**
     * 当前剩余量
     */
    private Integer number;

    /**
     * 入库后，剩余量
     */
    private Integer lastNumber;

    /**
     * 最低库存比
     */
    private Integer minRate;

    /**
     * 仓库id
     */
    private Long storageId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


}
